package com.huawei.petapp2.entity;

import java.math.BigDecimal;
import java.util.List;

/**
 * 购物车数据的bean类
 */
public class DatasBean implements Cloneable {
        private String itemId;
        private String itemCategory;
        private String itemName;      //店铺是否在购物车中被选中
        private String itemImg;
        private BigDecimal itemPrice;
        private String itemDes;
        private String itemTime;
        private int inventory;
        private String store_name;
        private String itemSpec;
        private int itemNum;
        private int storeId;

        private boolean select_shop;

        public boolean isSelect_shop() {
            return select_shop;
        }

        public void setSelect_shop(boolean select_shop) {
            this.select_shop = select_shop;
        }

        public int getStoreId() {
            return storeId;
        }

        public void setStoreId(int storeId) {
            this.storeId = storeId;
        }

        private List<GoodsBean> goods;

        public String getItemId() {
            return itemId;
        }

        public void setItemId(String itemId) {
            this.itemId = itemId;
        }

        public String getItemCategory() {
            return itemCategory;
        }

        public void setItemCategory(String itemCategory) {
            this.itemCategory = itemCategory;
        }

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public String getItemImg() {
            return itemImg;
        }

        public void setItemImg(String itemImg) {
            this.itemImg = itemImg;
        }

        public BigDecimal getItemPrice() {
            return itemPrice;
        }

        public void setItemPrice(BigDecimal itemPrice) {
            this.itemPrice = itemPrice;
        }

        public String getItemDes() {
            return itemDes;
        }

        public void setItemDes(String itemDes) {
            this.itemDes = itemDes;
        }

        public String getItemTime() {
            return itemTime;
        }

        public void setItemTime(String itemTime) {
            this.itemTime = itemTime;
        }

        public int getInventory() {
            return inventory;
        }

        public void setInventory(int inventory) {
            this.inventory = inventory;
        }

        public String getStore_name() {
            return store_name;
        }

        public void setStore_name(String store_name) {
            this.store_name = store_name;
        }

        public String getItemSpec() {
            return itemSpec;
        }

        public void setItemSpec(String itemSpec) {
            this.itemSpec = itemSpec;
        }

        public int getItemNum() {
            return itemNum;
        }

        public void setItemNum(int itemNum) {
            this.itemNum = itemNum;
        }

        public List<GoodsBean> getGoods() {
            return goods;
        }

        public void setGoods(List<GoodsBean> goods) {
            this.goods = goods;
        }

        public DatasBean clone() {
            DatasBean o = null;
            try {
                o = (DatasBean) super.clone();
            } catch (CloneNotSupportedException e) {
                e.printStackTrace();
            }
            return o;
        }



        public static class GoodsBean {

            private String goods_id;
            private String storeId;
            private String goods_name;
            private String goods_num;
            private String goods_image;
            private String goods_price;
            private boolean Select;        //商品是否在购物车中被选中
            private String itemDes;
            private String itemTIme;
            private int inventory;
            private String itemSpec;
            private String storeName;
            private String storeDes;
            private int itemCategory;

            public String getGoods_id() {
                return goods_id;
            }

            public void setGoods_id(String goods_id) {
                this.goods_id = goods_id;
            }

            public String getStoreId() {
                return storeId;
            }

            public void setStoreId(String storeId) {
                this.storeId = storeId;
            }

            public String getGoods_name() {
                return goods_name;
            }

            public void setGoods_name(String goods_name) {
                this.goods_name = goods_name;
            }

            public String getGoods_num() {
                return goods_num;
            }

            public void setGoods_num(String goods_num) {
                this.goods_num = goods_num;
            }

            public String getGoods_image() {
                return goods_image;
            }

            public void setGoods_image(String goods_image) {
                this.goods_image = goods_image;
            }

            public String getGoods_price() {
                return goods_price;
            }

            public void setGoods_price(String goods_price) {
                this.goods_price = goods_price;
            }

            public boolean isSelect() {
                return Select;
            }

            public void setSelect(boolean select) {
                Select = select;
            }

            public String getItemDes() {
                return itemDes;
            }

            public void setItemDes(String itemDes) {
                this.itemDes = itemDes;
            }

            public String getItemTIme() {
                return itemTIme;
            }

            public void setItemTIme(String itemTIme) {
                this.itemTIme = itemTIme;
            }

            public int getInventory() {
                return inventory;
            }

            public void setInventory(int inventory) {
                this.inventory = inventory;
            }

            public String getItemSpec() {
                return itemSpec;
            }

            public void setItemSpec(String itemSpec) {
                this.itemSpec = itemSpec;
            }

            @Override
            public String toString() {
                return "GoodsBean{" +
                        "goods_id='" + goods_id + '\'' +
                        ", storeId='" + storeId + '\'' +
                        ", goods_name='" + goods_name + '\'' +
                        ", goods_num='" + goods_num + '\'' +
                        ", goods_image='" + goods_image + '\'' +
                        ", goods_price='" + goods_price + '\'' +
                        ", Select=" + Select +
                        ", itemDes='" + itemDes + '\'' +
                        ", itemTIme='" + itemTIme + '\'' +
                        ", inventory=" + inventory +
                        ", itemSpec='" + itemSpec + '\'' +
                        ", storeName='" + storeName + '\'' +
                        ", storeDes='" + storeDes + '\'' +
                        ", itemCategory=" + itemCategory +
                        '}';
            }

            public String getStoreName() {
                return storeName;
            }

            public void setStoreName(String storeName) {
                this.storeName = storeName;
            }

            public String getStoreDes() {
                return storeDes;
            }

            public void setStoreDes(String storeDes) {
                this.storeDes = storeDes;
            }

            public int getItemCategory() {
                return itemCategory;
            }

            public void setItemCategory(int itemCategory) {
                this.itemCategory = itemCategory;
            }
        }
    }
